package vn.edu.ptithcm.pim.service;

import java.util.List;

import vn.edu.ptithcm.pim.dao.LanguageDao;
import vn.edu.ptithcm.pim.dom.Language;

public class LanguageService {
	private LanguageDao languageDao;

	public LanguageDao getLanguageDao() {
		return languageDao;
	}

	public void setLanguageDao(LanguageDao languageDao) {
		this.languageDao = languageDao;
	}

	public void save(Language language) {
		languageDao.save(language);
	}

	public void saveOrUpdate(Language language) {
		languageDao.saveOrUpdate(language);
	}

	public void lock(Language language) {
		languageDao.lock(language);
	}

	public void delete(Language language) {
		languageDao.delete(language);
	}

	public Language merge(Language language) {
		return languageDao.merge(language);
	}

	public Language findById(java.lang.Long id) {
		return languageDao.findById(id);
	}

	@SuppressWarnings("rawtypes")
	public List findByExample(Language language) {
		return languageDao.findByExample(language);
	}

	@SuppressWarnings("rawtypes")
	public List getAll() {
		return languageDao.getAll();
	}
}
